package com.example;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:实现计算器
 * User: bjc
 * Date: 2025-07-01
 * Time: 09:56
 */
@RestController
@RequestMapping("/calc")
public class CalcController {
    @GetMapping("/sum")
    public String sum(Integer num1,Integer num2){
        Integer sum = num1 + num2;
        return "计算器计算结果："+sum;
    }
}
